from typing import List


class Solution:
    def makesquare(self, nums: List[int]) -> bool:
        totalLen = sum(nums)
        if totalLen % 4 != 0:
            return False
        sideLen = totalLen // 4
        nums.sort(reversed = True)